import java.util.Random;
import java.util.Scanner;

public class numbers {
    public static void main(String[] args) {
        System.out.println("请输入数字");
        Random random = new Random();
        int a = random.nextInt(100)+1;
        while(true){
            Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            if(a>b){
                System.out.println("猜小了");
            } else if (a<b) {
                System.out.println("猜大了");
            }else{
                System.out.println("猜对了");
        }
        }
    }
}
